﻿using System;
using System.Linq;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Mipic.Infrastructure.Services;
using Mipic.Modules.Epoc.Services;

namespace Mipic.Modules.Epoc
{
    public class EpocModule : IModule
    {
        
        #region //--------- Private Fields --------------//

        private readonly IUnityContainer _container;

        #endregion
        
        #region //--------- Public Constructors ---------//
            
        public EpocModule(IUnityContainer container)
        {
            _container = container;
        }
        
        #endregion
        
        #region //--------- Interface Members -----------//
            
        public void Initialize()
        {
            _container.RegisterType<IEpocService, EpocService>();

            var epoc = _container.Resolve<IEpocService>();
        }

        #endregion

    }
}